package com.distribute.application.api;

public class TestJava {

	public static void main(String[] args) {
		String result=change("y");
         System.out.println(result.replace("'", "\"").replace("==\"swiper\"", "=='swiper'").replace("==\"textarea\"", "=='textarea'").replace("==\"input\"", "=='input'").replace("==\"img\"", "=='img'"));
	}

	private static String change(String x) {
//		 String sssString="<swiper catchtap='sL' data-flag='"+x+"' wx:if='{{"+x+".type=='swiper'}}' data-cr='{{"+x+".cr}}' style='{{"+x+".style}}' class='{{"+x+".class}}' indicator-dots='true' autoplay='true' interval='3000' duration='1000'>\n"
//						 +"<swiper-item catchtap='sL' data-cr='{{"+getnext(x)+".cr}}' style='{{"+getnext(x)+".style}}' data-flag='"+getnext(x)+"' class='{{"+getnext(x)+".class}}' wx:if='{{"+x+".child.length>0}}' wx:for='{{"+x+".child}}' wx:key='"+getnext(x)+"index' wx:for-item='"+getnext(x)+"' wx:for-index='"+getnext(x)+"index'>\n"
//						 +"<image catchtap='sL' data-cr='{{"+getnext(getnext(x))+".cr}}' data-flag='"+getnext(getnext(x))+"' data-idx='{{"+getnext(getnext(x))+"index}}' src='{{"+getnext(getnext(x))+".src}}' style='{{"+getnext(getnext(x))+".style}}' class='{{"+getnext(getnext(x))+".class}}'  wx:if='{{"+getnext(x)+".child.length>0}}' wx:for='{{"+getnext(x)+".child}}' wx:key='"+getnext(getnext(x))+"index' wx:for-item='"+getnext(getnext(x))+"' wx:for-index='"+getnext(getnext(x))+"index'></image>\n"
//						 +"</swiper-item>\n"
//						 +"</swiper>\n"
//						 +"<textarea  catchtap='sL' data-flag='"+x+"' wx:if='{{"+x+".type=='textarea'}}' data-cr='{{"+x+".cr}}' style='{{"+x+".style}}' class='{{"+x+".class}}' placeholder='{{"+x+".text}}' type='textarea'></textarea>\n"
//						 +"<input catchtap='sL' data-flag='"+x+"' wx:if='{{"+x+".type=='input'}}' data-cr='{{"+x+".cr}}' style='{{"+x+".style}}' class='{{"+x+".class}}' placeholder='{{"+x+".text}}'/>\n"
//						 +"<image data-cr='{{"+x+".cr}}' catchtap='sL' data-flag='"+x+"' data-idx='{{aindex}}' wx:if='{{"+x+".type=='img'}}' src='{{"+x+".src}}' style='{{"+x+".style}}' class='{{"+x+".class}}'></image>\n";
				 String sssString="<textarea  catchtap='sL' data-flag='"+x+"' wx:if='{{"+x+".type=='textarea'}}' data-cr='{{"+x+".cr}}' style='{{"+x+".style}}' class='{{"+x+".class}}' placeholder='{{"+x+".text}}' type='textarea'></textarea>\n"
				 +"<input catchtap='sL' data-flag='"+x+"' wx:if='{{"+x+".type=='input'}}' data-cr='{{"+x+".cr}}' style='{{"+x+".style}}' class='{{"+x+".class}}' placeholder='{{"+x+".text}}'/>\n"
				 +"<image data-cr='{{"+x+".cr}}' catchtap='sL' data-flag='"+x+"' data-idx='{{aindex}}' wx:if='{{"+x+".type=='img'}}' src='{{"+x+".src}}' style='{{"+x+".style}}' class='{{"+x+".class}}'></image>\n";
		return sssString;
	}

	private static String getnext(String c) {
		String[] dddStrings={"a","b","c","d","e","f","g","h","i","g","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"};
		
		String ss="";
		for (int i = 0; i < dddStrings.length; i++) {
			if (c.equals(dddStrings[i])) {
				ss=dddStrings[i+1];
				break;
			}
		}
		return ss;
	}
	

}
